<?php

	class FuncionesGrales{
		
		function FuncionesGrales(){
			
		}
		public function random_gen($length){
			$random= "";
			srand((double)microtime()*1000000);
			$char_list = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
			$char_list .= "abcdefghijklmnopqrstuvwxyz";
			$char_list .= "1234567890";
			// Add the special characters to $char_list if needed
			
			for($i = 0; $i < $length; $i++){    
				$random .= substr($char_list,(rand()%(strlen($char_list))), 1);  
			}  
			return $random;
		}
	}
	
?>	